
# ---------- macro target ------------ #
define macro-target
NAME=$$(shell echo $(1) | sed 's/$(2)//')
.ONESHELL:
.PHONY: enter-$$(NAME)
enter-$$(NAME):
	@cd $$(shell repo forall $(1) -c pwd)
	@bash
endef

# ---------- macro target ------------ #
define macro-target-path
NAME=$$(shell basename $(1) | sed 's/$(2)//')
.ONESHELL:
.PHONY: enter-$$(NAME)
enter-$$(NAME):
	@cd $(1)
	@bash
endef
